/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package assignment1;

import java.io.*;
/**
 *
 * @author jc202922
 */
public class Product
{
    private String description;
    private int quantityInStock;
    boolean isInStock;

    // setter methods
    void setDescription(String desc)
    {
            description = desc;
    }

    void setQuantity(int qty)
    {
            quantityInStock = qty;
    }

    // getter methods
    String getDescription()
    {
            return description;
    }

    int getQuantity()
    {
            return quantityInStock;
    }


    public String getUserInput(String prompt)
    {
        String inputLine = null;
        System.out.print(prompt + "  ");

           try {
           BufferedReader is = new BufferedReader(
            new InputStreamReader(System.in));
           inputLine = is.readLine();
           if (inputLine.length() == 0 )  return null;
         } catch (IOException e) {
           System.out.println("IOException: " + e);
         }
         return inputLine.toLowerCase();
    }
}
